//
//  HistoryTermBondsCell.m
//  HuaMuJinRong
//
//  Created by 吴建东 on 16/4/21.
//  Copyright © 2016年 EIMS. All rights reserved.
//

#import "HistoryTermBondsCell.h"

@interface HistoryTermBondsCell ()
{
    MyTermBonudsModel *_model;
}
@end

@implementation HistoryTermBondsCell

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
    _titleLabel.font = KFontSize(14.0);
    _timeLabel.font = KFontSize(13);
    _waitingProfitLabel.font = KFontSize(16.0);
    _waitingProfitValue.font = KFontSize(13);
    _princalLabel.font = KFontSize(16);
    _princalValue.font = KFontSize(13);
    
    _timeLabel.adjustsFontSizeToFitWidth = YES;
    _waitingProfitLabel.adjustsFontSizeToFitWidth = YES;
    _princalLabel.adjustsFontSizeToFitWidth = YES;
}

- (void)refreshCellWithModel:(MyTermBonudsModel *)model {
    
    _model = model;
    _titleLabel.text = model.title;
    _timeLabel.text = model.investTime;
    _waitingProfitLabel.text = [CommonClass formatConversion:model.real_receive_interest type:0];
    _princalLabel.text = [CommonClass formatConversion:model.amount type:0];
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
